import request from '@/utils/request'

// 节点用户、角色、岗位关联列表
export function roleLists(params?: Record<string, any>) {
    return request.get({ url: '/nodeRole/list', params })
}

// 节点用户、角色、岗位关联详情
export function roleDetail(params: Record<string, any>) {
    return request.get({ url: '/nodeRole/detail', params })
}

// 节点用户、角色、岗位关联新增
export function roleAdd(params: Record<string, any>) {
    return request.post({ url: '/nodeRole/add', params })
}

// 节点用户、角色、岗位关联编辑
export function roleEdit(params: Record<string, any>) {
    return request.post({ url: '/nodeRole/edit', params })
}

// 节点用户、角色、岗位关联删除
export function roleDelete(params: Record<string, any>) {
    return request.post({ url: '/nodeRole/del', params })
}
